package com.seean.easy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seean.easy.dao.UserDao;
import com.seean.easy.entity.UserEntity;
import com.seean.easy.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author seean
 * @date 2020/09/14 14:00
 */
@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements UserService {

    //执行 复杂sql或需自定义的sql
    @Override
    public List<UserEntity> getUserBySex(String sex) {
        return this.baseMapper.getUserBySex(sex);
    }
}
